package com.yyx.lgb.manager.service.impl;

import com.yyx.lgb.common.log.service.AsyncOperLogService;
import com.yyx.lgb.manager.mapper.SysOperLogMapper;
import com.yyx.lgb.model.entity.system.SysOperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * ClassName: AsyncOperLogServiceImpl
 * Package: com.yyx.lgb.common.service.Impl
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/8/8 - 17:37
 */
@Service
public class AsyncOperLogServiceImpl implements AsyncOperLogService {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    @Async      // 异步执行保存日志操作
    @Override
    public void saveSysOperLog(SysOperLog sysOperLog) {
        sysOperLogMapper.insert(sysOperLog);
    }

}
